 package com.education.platform.management.service;

 import com.education.platform.common.service.BaseService;
 import com.education.platform.common.util.StringUtils;
 import com.education.platform.dao.entity.UserOrderDO;
 import com.education.platform.dao.model.ConsumeRecordModel;
 import com.education.platform.dao.model.UserOrderModel;
 import com.education.platform.management.vo.request.OrderDeliverVO;

 import java.util.List;

 /**
 * describe: 订单
 * @author : tomato
 * @date: 2020-06-29 10:28:08.867
 **/
 public interface UserOrderService  extends BaseService<UserOrderDO> {


     /**
      * 发货
      * @param deliverVO
      * @return
      */
    boolean deliver(OrderDeliverVO deliverVO);


     /**
      * 获取订单详情
      * @param query
      * @return
      */
     List<UserOrderModel> getOrderAndDetails(UserOrderModel query);


     /**
      * 查询消费记录
      * @param query
      * @return
      */
     List<ConsumeRecordModel> getConsumeList(ConsumeRecordModel query);


     /**
      * 退货
      * @param id
      * @return
      */
     void returnOrder(Integer id);

 }
